<template>
  <!-- 顶部 -->
  <AppNavbar />
  <!-- 头部 -->
  <AppHeader />
  <AppHeaderSticky />
  <!-- 内容 -->
  <div class="main">
    <!-- 二级路由 -->
    <router-view />
  </div>
  <!-- 底部 -->
  <AppFooter />
</template>
<script>
import AppNavbar from '@/components/app-navbar.vue'
import AppHeader from '@/components/app-hearer.vue'
import AppFooter from '@/components/app-footer.vue'
import AppHeaderSticky from '@/components/app-header-sticky.vue'
import { useStore } from 'vuex'

export default {
  name: 'Layout',
  setup() {
    const store = useStore()
    store.dispatch('category/getList')
  },
  components: {
    AppNavbar,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  }
}
</script>
<style lang="less" scoped>
</style>